<template>
	<view>
		<view class="settings-person" @click="updataPaerson()"> 
			<text>个人信息设置</text>
		</view>
		<view class="settings-exit">
			<button @click="signOut">退出登录</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {		
			};
		},
			methods:{
				signOut() {
					uni.removeStorage({
						key: 'Authorization',
						success: res => {
							uni.reLaunch({
								url: `/pages/individual/individual`
							})
						}
					}) 
				},
				updataPaerson(){
					uni.navigateTo({
						url: '/pages/updatePerson/updatePerson'
					});
				}
			}
	}
</script>
<style lang="scss">
	.settings-person{
		padding-top: 20rpx;
		padding-bottom: 20rpx;
		width: 100%;
		border-bottom: 1px solid black;
		font-size: 35rpx;
	}
	.settings-exit{
		width: 100%;
		padding-top: 10rpx;
	}
</style>